package com.lcy;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Lcy10Activity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button create_btn = (Button)findViewById(R.id.button_create_vw);  //등록화면으로 전환
        Button search_btn = (Button)findViewById(R.id.button_search_vw);  //검색화면으로 전환
        
        //DB테이블 생성
        
        create_btn.setOnClickListener(this);
        search_btn.setOnClickListener(this);
        
    }

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if(v.getId() == R.id.button_create_vw){ 		//등록 버튼을 눌렀을때 처리 
			Intent it = new Intent(this, CardInfoCreate.class);
			startActivity(it);
			finish();
		}else if(v.getId() == R.id.button_search_vw){	//검색 버튼을 눌렀을때 처리 
			Intent it = new Intent(this, CardInfoSearch.class);
			startActivity(it);
			finish();
		}
		
	}
}